<%@ Assembly Name="RealDolmen.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188"%> 
<%@ Assembly Name="RealDolmen.SharePoint.ListFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188"%> 

<%@ Page Language="C#" Inherits="RealDolmen.SharePoint.ListFeatures.SettingsPage" MasterPageFile="~/_layouts/application.master"   EnableViewState="false" EnableViewStateMac="false"   %> 

<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="RealDolmen.SharePoint.Helpers" %>
<%@ Import Namespace="RealDolmen.SharePoint.ListFeatures" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="RealDolmenControls" Namespace="RealDolmen.Controls" Assembly="RealDolmen.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188" %> 

<script runat="server">
protected override void OnInit(EventArgs e)
{
    base.OnInit(e);

    FindNode(
        "/_layouts/listedit.aspx",
        string.Format("{0}/_layouts/listedit.aspx?List={1}", SPContext.Current.Web.Url, SPContext.Current.ListId));
    AddNode(
        GetGlobalResourceObject("lf", "ListFeaturesBreadcrumbNode").ToString(),
        string.Format("{0}/_layouts/ManageListFeatures.aspx?List={1}", SPContext.Current.Web.Url, SPContext.Current.ListId));
    AddNode(
        ListFeature.Definition.GetTitle(SPHelper.CurrentCultureInfo),
        ListFeature.Definition.SettingsUrl);
}

protected override SPBasePermissions RightsRequired
{
    get
    {
        return SPBasePermissions.ManageLists;
    }
}
</script>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <%=string.Format(GetGlobalResourceObject("lf", "ListFeaturesSettingsWindowTitle").ToString(), ListFeature.Current.GetTitle(SPHelper.CurrentCultureInfo))%>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <%=string.Format(GetGlobalResourceObject("lf", "ListFeaturesSettingsWindowTitle").ToString(), ListFeature.Current.GetTitle(SPHelper.CurrentCultureInfo))%>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <RealDolmenControls:FileVersionControl Assembly="RealDolmen.SharePoint.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188" runat="server"/>
    <RealDolmenControls:FileVersionControl Assembly="RealDolmen.SharePoint.ListFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f5c307c491a8188" runat="server" />

    <% RenderAll(); %>
    
	<SharePoint:FormDigest runat="server" />
</asp:Content>
